package com.flying.invest.base.spider;

import com.flying.framework.annotation.Param;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;

@SuppressWarnings("serial")
public class CurrencyRate extends Data implements DataSerializable{
	public final static String CODE = "code";
	public final static String RATE = "rate";
	
	@Param(value=CODE,   required=true,   maxlength=3,	desc="币种代码" )
	private String code;
	
	@Param(value=RATE,   required=true,   maxlength=0,	desc="汇率" )
	private Double rate;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Double getRate() {
		return rate;
	}

	public void setRate(Double rate) {
		this.rate = rate;
	}
}
